serve time

Undergo a prison sentence; also, work at a particular task, especially an undesirable one. For example, We couldn't hire him when we learned that he had served time for robbery, or I applied for a transfer after serving time in that chaotic department. [ Late 1800s ]